package great.project.constant;

/**
 * <div  style="border:2px solid none;margin:20px;padding:15px;font-size:24px;text-align:center;color:aqua;">
 *
 *
 *
 *  </div>
 *
 * @author zhangshun
 * @date 2021/2/5 16:26
 */
public enum ResultEnum {
	/**
	 *
	 */
	SUCCESS(1000, "请求成功"),
	PARAMETER_ERROR(1001, "请求参数有误!"),
	UNKNOWN_ERROR(9999, "未知的错误!");

	private final Integer code;
	private final String message;

	ResultEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}